package 多态编程题1;

public class TestPolymorphism {
    public static void main(String[] args) {
        Animal a = new Cat();
        a.eat();
        ((Cat)a).catchMouse();
    }
}
